import Vue from 'vue'
import Router from 'vue-router'

import outLayout from '../pages/outlayout'
//引入页面路由
import loginRegister from '../pages/login_register'
import musicLibrary from '../pages/layout_pages/music_library'
import own from '../pages/layout_pages/own'
import found from '../pages/layout_pages/found'
import layout from '../pages/layout'
import start from '../pages/start'
import guide from '../pages/guide'

//我的页面路由引入
import myRadio from '../pages/layout_pages/own_pages/my_radio'
import createSonglist from '../pages/layout_pages/own_pages/create_songlist'
import historyRecord from '../pages/layout_pages/own_pages/history_record'
import localMusic from '../pages/layout_pages/own_pages/local_music'
import postDynamic from '../pages/layout_pages/own_pages/post_dynamic'

//发现页面路由引入
import myFriend from '../pages/layout_pages/found_pages/my_friend'
import dynamicPlatform from '../pages/layout_pages/found_pages/dynamic_platform'


//个人中心页面路由
import changeSkin from '../pages/layout_pages/personal_pages/change_skin'
import freeFlow from '../pages/layout_pages/personal_pages/free_flow'
import listenReconizeSong from '../pages/layout_pages/personal_pages/listen_reconize_song'
import messageCenter from '../pages/layout_pages/personal_pages/message_center'
import playRegularly from '../pages/layout_pages/personal_pages/play_regularly'
import ringSet from '../pages/layout_pages/personal_pages/ring_set'
import set from '../pages/layout_pages/personal_pages/set'
import vipCenter from '../pages/layout_pages/personal_pages/vip_center'
import playerIndex from '../pages/layout_pages/personal_pages/player'

//搜索页面
import Searches from "../pages/layout_pages/search.vue"


//乐库页面路由
//歌手页面
import musicSinger from '../pages/layout_pages/music_library_pages/music_singer'
import singerDetaile from '../pages/layout_pages/music_library_pages/singer_detaile'
//视频页面
import vedio from '../pages/layout_pages/music_library_pages/vedio'
import newVedio from '../pages/layout_pages/music_library_pages/vedio_pages/new _vedio'
import hotVedio from '../pages/layout_pages/music_library_pages/vedio_pages/hot_vedio'
import vedioBoader from '../pages/layout_pages/music_library_pages/vedio_pages/vedio_boader'
import singerLive from '../pages/layout_pages/music_library_pages/vedio_pages/singer_live'
//电台页面
import radio from '../pages/layout_pages/music_library_pages/radio'
import hotRadio from '../pages/layout_pages/music_library_pages/radio_pages/hot_radio'
import programBoader from '../pages/layout_pages/music_library_pages/radio_pages/program_boader'
import radioBoader from '../pages/layout_pages/music_library_pages/radio_pages/radio_boader'
import radioHot from '../pages/layout_pages/music_library_pages/radio_pages/radio_hot'
import radioMore from '../pages/layout_pages/music_library_pages/radio_pages/radio_more'
import radioSort from '../pages/layout_pages/music_library_pages/radio_pages/radio_sort'
//歌单页面
import songList from '../pages/layout_pages/music_library_pages/song_list'
import hotrecommend from '../pages/layout_pages/music_library_pages/song_list_pages/hot_recommend'
import latestRecommend from '../pages/layout_pages/music_library_pages/song_list_pages/latest_recommend'
//专辑页面
import album from '../pages/layout_pages/music_library_pages/album'
import albumSort from '../pages/layout_pages/music_library_pages/album_pages/album_sort'
import alreadyBuy from '../pages/layout_pages/music_library_pages/album_pages/already_buy'
import bestSelling from '../pages/layout_pages/music_library_pages/album_pages/best_selling'
import clearance from '../pages/layout_pages/music_library_pages/album_pages/clearance'
//排行榜页面
import boader from '../pages/layout_pages/music_library_pages/boader'
import soaringBoader from '../pages/layout_pages/music_library_pages/boader_pages/soaring_boader'
import MV from '../pages/layout_pages/music_library_pages/boader_pages/MV'


Vue.use(Router)

export default new Router({
	routes: [{
		path: '/',
		name: 'start',
		component: start
	}, {
		path: '/guide',
		name: 'guide',
		component: guide
	}, {
		path: '/logReg',
		name: 'loginRegister',
		component: loginRegister
	}, {
		path: '/outLay',
		name: 'outLayout',
		component: outLayout,
		children: [{
			path: '/layout',
			name: 'layout',
			component: layout,
			redirect: '/layout/musLib',
			children: [{
				path: 'musLib',
				name: 'musicLibrary',
				component: musicLibrary
			}, {
				path: 'own',
				name: 'own',
				component: own
			}, {
				path: 'found',
				name: 'found',
				component: found
			}]
		}, {
			path: '/myRad',
			name: 'myRadio',
			component: myRadio
		}, {
			path: '/creSon',
			name: 'createSonglist',
			component: createSonglist
		}, {
			path: '/hisRec',
			name: 'historyRecord',
			component: historyRecord
		}, {
			path: '/locMus',
			name: 'localMusic',
			component: localMusic
		}, {
			path: '/posDyn',
			name: 'postDynamic',
			component: postDynamic
		}, {
			path: '/myFri',
			name: 'myFriend',
			component: myFriend
		}, {
			path: '/dynPla',
			name: 'dynamicPlatform',
			component: dynamicPlatform
		}, {
			path: '/chaSki',
			name: 'changeSkin',
			component: changeSkin
		}, {
			path: '/freFlo',
			name: 'freeFlow',
			component: freeFlow
		}, {
			path: '/lisRec',
			name: 'listenReconizeSong',
			component: listenReconizeSong
		}, {
			path: '/mesCen',
			name: 'messageCenter',
			component: messageCenter
		}, {
			path: '/plaReg',
			name: 'playRegularly',
			component: playRegularly
		}, {
			path: '/rinSet',
			name: 'ringSet',
			component: ringSet
		}, {
			path: '/player',
			name: 'player',
			component: playerIndex
		}, {
			path: '/set',
			name: 'set',
			component: set
		}, {
			path: '/vipCen',
			name: 'vipCenter',
			component: vipCenter
		}, {
			path: '/musSin',
			name: 'musicSinger',
			component: musicSinger
		}, {
			path: '/sinDet',
			name: 'singerDetaile',
			component: singerDetaile
		}, {
			path: '/vedio',
			name: 'vedio',
			component: vedio
		}, {
			path: '/newVed',
			name: 'newVedio',
			component: newVedio
		}, {
			path: '/hotVed',
			name: 'hotVedio',
			component: hotVedio
		}, {
			path: '/vedBoa',
			name: 'vedioBoader',
			component: vedioBoader
		}, {
			path: '/sinLiv',
			name: 'singerLive',
			component: singerLive
		}, {
			path: '/radio',
			name: 'radio',
			component: radio
		}, {
			path: '/hotRad',
			name: 'hotRadio',
			component: hotRadio
		}, {
			path: '/proBoa',
			name: 'programBoader',
			component: programBoader
		}, {
			path: '/radBoa',
			name: 'radioBoader',
			component: radioBoader
		}, {
			path: '/radHot',
			name: 'radioHot',
			component: radioHot
		}, {
			path: '/radMor',
			name: 'radioMore',
			component: radioMore
		}, {
			path: '/radSor',
			name: 'radioSort',
			component: radioSort
		}, {
			path: '/sonLis',
			name: 'songList',
			component: songList
		}, {
			path: '/hotRec',
			name: 'hotrecommend',
			component: hotrecommend
		}, {
			path: '/latRec',
			name: 'latestRecommend',
			component: latestRecommend
		}, {
			path: '/album',
			name: 'album',
			component: album
		}, {
			path: '/albSor',
			name: 'albumSort',
			component: albumSort
		}, {
			path: '/alrBuy',
			name: 'alreadyBuy',
			component: alreadyBuy
		}, {
			path: '/besSel',
			name: 'bestSelling',
			component: bestSelling
		}, {
			path: '/clearance',
			name: 'clearance',
			component: clearance
		}, {
			path: '/boader',
			name: 'boader',
			component: boader
		}, {
			path: '/soaBoa',
			name: 'soaringBoader',
			component: soaringBoader
		}, {
			path: '/MV',
			name: 'MV',
			component: MV
		}, {
			path: '/search',
			name: 'search',
			component: Searches
		}]
	}]
})